#include<iostream>
#include <cmath>
using namespace std;
int main()
{
    int a,b;
    cin >> a >> b;
    double CL= a + sqrt(b*a + 1);
    double tD = a*(CL + b)*(CL + b);
    double SP= tD*CL + b*b;
    cout <<"CL="<< (int)CL <<" " <<"tD="<<(int)tD <<" "<<"SP="<< (int)SP<<endl;

    return 0;
}